﻿@{
    Layout = "~/Views/Shared/_LayoutMain.cshtml";
    ViewBag.Title = "网非e学院--意见反馈";
}
<div style="margin-top:20px; text-align:center">
    <img src="~/Image/logo.png" style="width:90%;" />
</div>
<div class="ap_Apply">
    <div class="ap_ApplyTitle">
    </div>
</div>
<br />
<form id="formApply" method="post">
    <div class="weui_cells weui_cells_form">

        <div class="weui_cell">
            <div class="weui_cell_bd weui_cell_primary">
                <input class="weui_input" placeholder="请留下真实的联系方式" name="Phone" id="txtPhone">
            </div>
        </div>

        <div class="weui_cells weui_cells_form">
            <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
                    <textarea class="weui_textarea" placeholder="请把您的意见告诉我们" rows="3" name="Reason" id="txtReson"></textarea>
                    <div class="weui_textarea_counter"><span>0</span>/200</div>
                </div>
            </div>
        </div>

        <div class="weui_btn_area">
            <div id="errorInfo" class="error">
                @ViewBag.ErrorInfo
            </div>
            <span class="customBtn" onclick="Apply()">提交申请</span>
        </div>
    </div>
</form>

<script>

    function Apply() {

        if ($("#txtPhone").val() == "") {
            $("#errorInfo").html("请输入联系方式！");
            return;
        }

        if ($("#txtReson").val() == "") {
            $("#errorInfo").html("请输入您的意见！");
            return;
        }

        $("#formApply").submit();
    }

    //底部导航选中
    $("#ImgWode").attr("src", "../../Image/logoWodeSel.png");
</script>



